import request from '@/utils/request'

const api_name = '/admin/system'

export default {
  login(data) {
    return request({
      url: `${api_name}/login`,
      method: 'post',
      data
    })
  },
  
  getInfo() {
    return request({
      url: '/admin/system/info',
      method: 'get'
    })
  },
  
  logout() {
    return request({
      url: `${api_name}/logout`,
      method: 'post'
    })
  }
}
